package com.doit.day02;

public class Phone$ {
    public static Phone$ MODULE$;
    private Integer id;
    private String name;
    private Double price;
    private MyFunction0 introduce;

    static {
        new Phone$();
    }

    public String name() {
        return name;
    }

    public void name_eq$(String name) {
        this.name = name;
    }


    public Integer id() {
        return id;
    }

    public Double price() {
        return price;
    }

    public void price_eq$(Double price) {
        this.price = price;
    }

    public MyFunction0 introduce() {
        return introduce;
    }

    public void canWeiXinPhone(Double money){
        System.out.println("这里是外太空,欢迎来电");
    }

    //私有化得构造方法
    private Phone$(){
        MODULE$ = this;
        this.id = 1;
        this.name = "华为meta60";
        this.price = 6999.00;
        this.introduce = new MyFunction0() {
            @Override
            public void apply() {
                System.out.println("5g手机，芯片贼强，也不知道是哪个芯片供应商提供的！！！！！");
            }
        };
    }

}
